<?php
namespace app\admin\controller;
use think\Loader;
class User extends Base{

   //用户列表
   public function user_list(){
       $invoking     = Loader::model('User','service');
       $data         = $invoking->userList();
       $this->assign('list', $data['list']);
       $this->assign('page', $data['page']);
       $this->assign('count', $data['count']);
       return $this->fetch();
   }

    //用户详情
    public function user_info(){
        $invoking     = Loader::model('User','service');
        $data         = $invoking->userInfo();
        $this->assign('data', $data);
        return $this->fetch();
    }
}
